package com.sx.medicinecard.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class JwtConfig {

    @Value("${jwt.adminSecretKey}")
    private String adminSecretKey;

    private static String STATIC_ADMIN_SECRET_KEY;

    @PostConstruct
    public void init() {
        STATIC_ADMIN_SECRET_KEY = this.adminSecretKey;
    }

    public static String getAdminSecretKey() {
        return STATIC_ADMIN_SECRET_KEY;
    }
}
